home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d13 / r3util.arc / STRING.ARC / STRING.DOC (.txt) < prev    next >
Encoding:
DOC2COM (Gerald DePyper)  |  1991-10-30  |  10.2 KB  |  175 lines

  1.  
  2. STRING{/LEFT=n}{/RIGHT=n} variable {string1 {string2 {string3}}}
  3.  Assigns a string of characters to an environment variable that is either 
  4.  typed in by the user or extracted from one of the special strings.  When 
  5.  two strings are specified they are first linked together(concatenated) 
  6.  before any characters are extracted.
  7.  
  8.   /LEFT=n          Counting from the left, the number of the character to
  9.                    begin extraction.
  10.   /RIGHT=n         Counting from the left, the number of the character to
  11.                    end extraction.
  12.   variable         Environment variable to receive string (special name ECHO
  13.                    will echo to standard output rather than variable).
  14.   string1          String to assign to environment variable.
  15.   string2          Optional second string to concatenate after string1.
  16.   string3          Optional third string to concatenate after string2.
  17.  Special strings available:
  18.  
  19.   ?"prompt"        Prompts for input with echo.  Expands to typed input.
  20.   ^"prompt"        Prompts for input with no echo.  Expands to typed input.
  21.   !"DATE"          Expands to the current date.
  22.   !"DIRECTORY"     Expands to current disk and directory.
  23.   !"EX=pathname"   Expands to the true path of a file..
  24.   !"INSTALLED"     Expands to characters corresponding to installed programs.
  25.                     N=NETBIOS  R=REDIR  S=SERVER  P=LANPUP -=Not installed
  26.   !"LOGIN=server"  Expands to "TRUE" if logged in to server, otherwise it
  27.                    expands to "FALSE".
  28.   !"NODEID"        Expands to the current 12 digit NETBIOS node number.
  29.   !"MACHINEID"     Expands to the machine name.8
  30.   !"PROGRAM"       Expands to the full path of the STRING program.
  31.   !"TIME"          Expands to the current time.
  32.   !"USERID"        Expands to the current users name.
  33.  
  34.  
  35.  
  36. STRING.COM 1.00 - 4 July 1991
  37.  
  38. 1. What is STRING.COM?
  39.    String.com is a program designed to allow you to place keyboard input into
  40.    an environmental variable in the master enviornment.  The syntax and oper-
  41.    ation of string is the same as the Lantastic(tm) net string command with 
  42.    the following exceptions:
  43.  
  44.    Net String requires a pre existing environmental variable, string.com does
  45.    not.
  46.  
  47.    Net String pads the input with spaces, ie if you set up a variable with 10
  48.    characters and input 2 character, Net String will fill the variable with
  49.    spaces.  String.com will place only 2 characters in AsciiZ format in the 
  50.    variable.
  51.  
  52.    String has the reserved variable name echo, using this variable name will
  53.    cause the output to be echoed to the screen. This duplicates the NET ECHO
  54.    command.
  55.  
  56.    String has two additional special strings !"EXPAND=filename" this dup-
  57.    icates the NET EXPAND command.  The second !"USERID" expands to the 
  58.    current user name.
  59.  
  60. 2. How do I install STRING.COM?
  61.    Installation of STRING could not be easier, copy STRING.COM, STRING.hlp,
  62.    to a directory on the path.C:\Lantasti is good but not necessary.  IF  
  63.    ANET.COM can fine string in the current path, you can use the command
  64.    ANET string to call string.com.  (This abbility means you can rename 
  65.    ANET.com NET.com and continue to use your current batch files.)
  66.  
  67. 3. How do I use STRING.COM?
  68.    STRING.COM can be used on any computer running MSDOS or PCDOS 3.1 or
  69.    above,  Lantastic in not required. (Lantastic specific special strings
  70.    will not work without Lantastic.)  The uses for string can be many and 
  71.    varied.  Below is an example of string used in the autoexec.bat file.
  72.  
  73.    @echo off
  74.    PROMPT $P$G
  75.    set TEMP=d:\WINDOWS\TEMP
  76.    PATH C:\DOS;D:\WINDOWS;C:\UTIL;C:\BAT;D:\BORLANDC\BIN
  77.    string answer ?"Optomize disk ?"     PROMPT FOR INPUT STORE IT IN ANSWER
  78.    if %answer%==N goto scan             IF ANSWER anything but N optomize
  79.    c:
  80.    vopt c:
  81.    :scan
  82.    string answer ?"Scan disks for virus ?" PROMPT for input again
  83.    if %answer%==N goto lan              IF ANSWER anything but N scan
  84.    scan c:
  85.    :lan
  86.    string answer ?"Load network ?"
  87.    if %answer%==N goto win              IF ANSWER anything but N load network
  88.    path %path%;c:\lantasti
  89.    ae2 irq=15
  90.    ailanbio
  91.    redir rick logins=2
  92.    string answer ?"Load server ?"       IF ANSWER anything but N load server
  93.    if %answer%==N goto win
  94.    server
  95.    :win
  96.    string answer ?"Load Windows? "      IF ANSWER anything but N load windows
  97.    if %answer%==N goto end
  98.    string /left=3 /right=3 answer !"INSTALLED" Get network software installed
  99.    if %answer==S goto wins          IF server installed go to win/s
  100.    win                              Server not installed load windows in enh
  101.                                     mode.
  102.    goto end
  103.    wins:
  104.    win/s                            Server installed load windows in standard
  105.                                     mode.
  106.    :end
  107.    set answer=                      Get rid of variable answer
  108.   
  109.  
  110.  
  111. 4. Legalities
  112.    STRING.COM is not freeware, nor is it in the public domain.  It is a
  113.    shareware program, and the entire program and documentation are
  114.    Copyright (C) 1991, Rick R. Roth, Tucson, Az.  You are encouraged
  115.    to copy the package freely, including distribution by BBS, shareware
  116.    library, or other means, provided that (1) the distribution shall
  117.    consist of the original archive containing the program and this doc-
  118.    umentation file, and (2) no fee of more than five US dollars ($5)
  119.    shall be charged for the copy.
  120.  
  121.    Lantastic is a registered trademake of Artisof4t, INC.
  122.  
  123. 5. Registration
  124.    To register your copy of STRING.COM, send $10 in cash, check or money
  125.    order to:
  126.    
  127.    Rick R. Roth
  128.    4072 E. 22nd St.
  129.    Suite 178
  130.    Tucson, Az 85711
  131.    
  132.    THIS COPY IS LICENSED FOR THE EXCLUSIVE USE OF THE LICENSEE.  
  133.    This license is good for one network, and the software can be installed
  134.    on all computers on this network.
  135.  
  136. 6. Liability
  137.  
  138.  ╔═══════════════════════════════════════════════════════════════╗
  139.  ║                                                               ║
  140.  ║                    LIMIT OF LIABILITY                         ║
  141.  ║                    ──────────────────                         ║
  142.  ║      The author disclaims all warranties, expressed or        ║
  143.  ║ implied and assumes no liability for damages either from its  ║
  144.  ║ direct use or as a consequence of its use.  Have you hugged   ║
  145.  ║ your backup today?                                            ║
  146.  ║                                                               ║
  147.  ╚═══════════════════════════════════════════════════════════════╝
  148.  
  149.  
  150.   I have tested it on several computers and found that found that it works 
  151.   well on all of them.  All computers have been running LANtastic(tm) NOS v3.03
  152.   and above and all running MS DOS 3.3 and above.
  153.  
  154.   Please note that while the author is an employee of Artisoft, Inc., Artisoft 
  155.   is not responsible for the contents of this file; the functioning of STRING.COM 
  156.   (or any damages resulting from the use or misuse of the program); and further, 
  157.   Artisoft Technical Support and other employees of Artisoft, Inc. are 
  158.          
  159.                 NOT RESPONSIBLE FOR SUPPORTING THIS PROGRAM!  
  160.          
  161.   If you have problems or suggestions when using this program, direct them to 
  162.   me Rick R. Roth through one of the following channels:
  163.  
  164.         US Mail:          4702 E 22nd St,  Tucson, AZ  85711
  165.         CompuServ:        Artisoft forum, 75300,1377
  166.         Arti-facts BBS:   If you have a current account there.
  167.  
  168.  
  169.   Do NOT call the author during business hours for support, this program was
  170.   not written during business hours, it will not be supported during business 
  171.   hours.
  172.  
  173.  
  174. 
  175.